<?php

namespace App\Transformers;

use App\Models\Archive;
use League\Fractal\TransformerAbstract;

class ArchiveTransformer extends TransformerAbstract
{
    /**
     * @param Archive $archive
     * @return array
     */
    public function transform(Archive $archive)
    {
        return $archive->toArray();
    }

}